﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace _20200304lianxi4
{
    public partial class Login : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            UnobtrusiveValidationMode = UnobtrusiveValidationMode.None;
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            
                if (Session["YZM"].ToString() == this.TextBox2.Text.ToString())
                {
                    Response.Write("<script>alert('验证成功')</script>");
                }
            
                else
                {
                    Response.Write("<script>alert('验证失败')</script>");
                }
        }
    }
}